package com.ww.springboot.boot.baseTest.design.装饰.son;

import com.ww.springboot.boot.baseTest.design.装饰.ComponentService;
import com.ww.springboot.boot.baseTest.design.装饰.son.su.AbstractDecorator;

public class DecoratorOne extends AbstractDecorator {

	public DecoratorOne(ComponentService component) {
		super(component);
	}

	@Override
    public void preSay() {
		System.out.println("one增强pre");
		super.preSay();
	}

	@Override
    public void afterSay() {
		System.out.println("one增强after");
		super.afterSay();
	}

	
}
